package com.atguigu.yygh.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository//交给spring管理
public interface HospitalRepository extends MongoRepository<Hospital, String> {
    /**
     * @description: 判断是否存在数据
     * @author 化一帆
     * @date 2022/11/25 18:06
     */
    Hospital getHospitalByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String hosname);
}
